/**
 * 该demo用于演示如何新建一个video的filter
 */
const beamcoder = require('beamcoder');

async function initVideoFilter() {
    return  await beamcoder.filterer({
        filterType: 'video',
        inputParams: [
            {
                width: 448,
                height: 960,
                pixelFormat: 'yuv420p',
                sample_aspect_ratio: 0,
                timeBase: [1,25],
                pixelAspect:[448,960]
            }
        ],
        outputParams: [
            {
                pixelFormat: 'rgba'
            }
        ],
        filterSpec: 'scale=448:960'
    });
}

initVideoFilter().then(() => console.log('ok'));